﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ElectronicJournal.Account.EditorAccount
{
    public partial class EditorSite : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (System.Web.HttpContext.Current.User.Identity.IsAuthenticated)
            {
             //  DB.DbPublications db = new DB.DbPublications();
             //   NavigationMenu.Items[3].Text = String.Format("Публикации (+{0})", db.GetCountOfUnreadPublicationsForEditor(System.Web.Security.Membership.GetUser().ProviderUserKey.ToString()));
            }
            else
            {
                Response.Redirect("~/Default.aspx");
            }
        } 
    }
}